import requet from "../utils/requet.js";

/* 游戏初始化 */
export function casionInit(params) {
  return requet({
    url: "/casino/home",
    method: "GET",
    params
  });
}

/* 游戏列表 */
export function gameList(params) {
  return requet({
    url: "/game/list",
    method: "GET",
    params
  });
}

/* 游戏搜索 */
export function gameSearch(params) {
  return requet({
    url: "/game/search",
    method: "GET",
    params
  });
}
/* 游戏收藏 */
export function gameCollect(data) {
  return requet({
    url: "/game/collect",
    method: "POST",
    data
  });
}
/* 游戏收藏列表 */
export function gameCollectList(params) {
  return requet({
    url: "/game/collect-list",
    method: "GET",
    params
  });
}


/* 游戏登录 */
export function gameLogin(data) {
  return requet({
    url: "/game/login",
    method: "POST",
    data
  });
}
/* 分类icon列表 */
export function typeIcon(params) {
  return requet({
    url: "/casino/category-icon",
    method: "GET",
    params
  });
}
/* 大厅简介信息 */
export function hallIntro(params) {
  return requet({
    url: `/casino/hall-intro`,
    method: "GET",
  });
}

/* 游戏注单列表 */
export function betList(params) {
  return requet({
    url: "/game/bet-list",
    method: "GET",
    params
  });
}

/* 游戏注单排行 */
export function betRankList(params) {
  return requet({
    url: "/game/bet-ranking",
    method: "GET",
    params
  });
}

/* 体育code */
export function getGameSportCode(params) {
  return requet({
    url: "/game/sport-code",
    method: "GET",
    params
  });
}

/* 游戏同类列表 */
export function gameSame(params) {
  return requet({
    url: "/game/same-list",
    method: "GET",
    params
  });
}


/* 游戏记录列表 */
export function gameRecordList(params) {
  return requet({
    url: "/game/record-list",
    method: "GET",
    params
  });
}

/* 服务商游戏列表 */
export function gameBusinessList(params) {
  return requet({
    url: "/game/business-list",
    method: "GET",
    params
  });
}